﻿<div class="main-block">
    <div class="file-uploader-block">
        @(Html.DevExtreme().FileUploader()
            .Name("imageFile")
            .Accept("*")
            .Multiple(true)
            .AllowedFileExtensions(new[] { ".jpg", ".jpeg", ".gif", ".png" })
            .UploadMode(FileUploadMode.UseButtons)
            .UploadUrl(Url.Action("UploadImage", "FileUploader"))
        )
        <span class="note">Allowed file extensions: <span>.jpg, .jpeg, .gif, .png</span>.</span>
    </div>
    <div class="file-uploader-block" style="float: right">
        @(Html.DevExtreme().FileUploader()
            .Name("smallFile")
            .Accept("*")
            .Multiple(true)
            .MaxFileSize(4000000)
            .UploadMode(FileUploadMode.UseButtons)
            .UploadUrl(Url.Action("UploadSmallFile", "FileUploader"))
        )
        <span class="note">Maximum file size: <span>4 MB.</span></span>
    </div>
</div>
